<?php

class Controller_Pages extends Controller_Base
{
	private $show_in_page = 1;
	
	public function __construct($parts) {		
		$this->parts        = $parts;
		$this->common_vars  = Registry::get("common_vars");
		$this->table_module = PRFX."pages";
	}

    public function out()
	{
		Registry::set("title", functions::createTitle(array($this->common_vars["structure_name"]), ''));
		//Registry::get("smarty")->assign($out);
		return Registry::get("smarty")->fetch(TEMPLATE_SITE.$this->common_vars["controller_template"], Registry::get("cache_id"));	
    }
}

$controller = new Controller_Pages($parts);
$site_module_out = $controller->out();

?>